package com.atguigu.spzx.manager.mapper;

import com.atguigu.spzx.model.entity.sys.SysMenu;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * title:
 * author: zgl
 * date: 2023/12/30
 * description：
 */
@Mapper
public interface SysMenuMapper {
    List<SysMenu> getMenuList();

    void saveFatherMenu(SysMenu sysMenu);

    void deleteMenu(Long id);

    /*void saveSonMenu(SysMenu sysMenu);*/

    void updateMenu(SysMenu sysMenu);

    boolean hasChildren(Long id);

    List<SysMenu> getMenus(Long userId);
}
